package com.github.ecbp.store.service.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.github.ecbp.common.data.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @Author Created by Alex·He on 2020/4/30 22:07
 * @Version V1.0
 * @Description: 商品SKU表(ProductSku)实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("product_sku")
public class ProductSku extends BaseEntity {

    private Long productId;

    /**
     * 商品货号
     */
    private String productSn;

    /**
     * 商品价格
     */
    private BigDecimal price;

    /**
     * 市场零售价
     */
    private BigDecimal originalPrice;

    /**
     * 库存
     */
    private Integer stock;

    /**
     * 预警库存
     */
    private Integer lowStock;

    /**
     * 销量
     */
    private Integer saleAmount;
}
